package com.example.demo.AbstractFactory;

public class NvWa {
    public static void main(String[] args) {
        //第二条生产线，女性生产线
        HumanFactory femaleHumanFactory = new FemaleFactory();
        Human femaleYellowHuman = femaleHumanFactory.createYellowHuman();
        System.out.println("---生产一个黄色女性---");
        femaleYellowHuman.getColor();
        femaleYellowHuman.talk();
        femaleYellowHuman.getSex();

        /*
         * ......
        * 后面继续创建
        */
    }
}